
package com.hc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hc.dao.IEmployeeDao;
import com.hc.domain.Employee;
import com.hc.service.IEmployeeService;
@Service("employeeService")
public class EmployeeServiceImpl implements IEmployeeService{
	@Resource
	private IEmployeeDao employeeDao;

	@Override
	public Employee getByAccount(String account) {
		return employeeDao.getByAccount(account);
		
	}

	@Override
	public void saveOrUpdate(Employee admin) {
		employeeDao.saveOrUpdateData(admin);
	}

	@Override
	public List<Employee> findEmployeePages(Integer roleId,String name,String tel,Integer status,Integer index, Integer count) {
		return employeeDao.findEmployeePages(roleId,name,tel,status,index,count);
	}

	@Override
	public int getEmployeeTotal() {
		return employeeDao.getEmployeeTotal();
		
	}

	@Override
	public Employee getById(Integer id) {
		return employeeDao.getById(id);
		
	}
}

